package com.hxl.demo.mapper;

import com.hxl.demo.entity.TrainingRecord;
import com.hxl.demo.param.TrainingStatisticsParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface TrainingStatisticsMapper {

    /**
     * 查询培训列表
     * @return
     */
   public  List<Map<String,Object>> queryList(TrainingStatisticsParam param);


    /**
     * 查询培训列表总条数
     * @return
     */
    public  Integer queryListNum(TrainingStatisticsParam param);

    /**
     * 详情列表查询
     * @param param
     * @return
     */
    List<Map<String,Object>> queryDetails(TrainingStatisticsParam param);


    /**
     * 详情列表查询条数
     * @param param
     * @return
     */
    Integer queryDetailsNum(TrainingStatisticsParam param);

    /**
     * 查询用户学习总分钟数
     * @param userId
     * @return
     */
    Integer  queryCountById(Integer userId);
}
